import Notify from '@vant/weapp/notify/notify';

Page({
  data:{
    avatarUrl:'../../images/navicon3.png'
  },
  //获取微信头像
  chooseavatar (event) {
    // console.log(event)
    // 处理选择头像的逻辑

    const {avatarUrl} =event.detail

    this.setData({
      avatarUrl
    })
  },

  //获取微信昵称
  onSubmit (event) {
    // console.log(event)
    const {nickname} = event.detail.value
    console.log(nickname)
  },

 
    redirectToPingPage() {
      wx.navigateTo({
        url: '/pages/ping/ping', // 目标页面的路径
      });
    },
    //拨打电话
    cell(e){
      wx.makePhoneCall({
        phoneNumber:'123123'
      })

    }

  







})




